let fs = require('fs');
const readline = require('readline');
// 获取当前日期
var currentDate = new Date();

// 获取年份
var year = currentDate.getFullYear();

// 获取月份（注意月份从0开始，所以需要加1）
var month = currentDate.getMonth() + 1;

// 获取日期
var day = currentDate.getDate();

// 将年月日拼接成字符串
var currentDateStr = year + "_" + month + "_" + day;



const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

rl.question('请输入您想创建的文件夹名字：', (name) => {
    console.log(`好的创建了：${name}！`);

    fs.mkdirSync(currentDateStr + '_' + name);

    rl.close();
});